package com.abhinav.spring.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.abhinav.spring.bean.User;
import com.abhinav.spring.dao.UserDAO;

@Service("userService")
public class UserServiceImpl implements UserService {
	@Autowired
	private UserDAO userDao;

	@Override
	public void createUser(String uname, String upwd) {
		User u = new User();
        u.setUsername(uname);
        u.setPassword(upwd);
        userDao.create(u);
	}

}
